package cn.chinaflame.pagodas.req;

import cn.chinaflame.pagodas.enums.CodeEnum;
import cn.chinaflame.pagodas.utils.ParamPreconditions;

import java.math.BigDecimal;

/**
 * @author created by lbq
 * @date 2018年1月9日 下午4:36:58
 **/
public class OrderAddReq extends BaseReq {
    private String id;
    private String memberId;
    private String openid;
    private BigDecimal money;
    private String transType;
    private String payType;
    private String payStatus;
    private String errorMsg;
    private String itemId;
    private String channel;
    private String serialNumber;
    private String ip;
    private String addTime;
    private String payTime;
    private String payFinishTime;
    private String createtime;
    private String updatetime;
    private PaOrderitemReq itemlist;


    @Override
    public void check() {
        ParamPreconditions.checkNotNull(money, CodeEnum.FAIL.getCode(), "金额不能为空");
        ParamPreconditions.checkNotEmpty(CodeEnum.FAIL.getCode(), "必要参数为空", "必要参数为空", memberId, transType, ip, channel);

        //super.check();
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getOpenid() {
        return openid;
    }


    public void setOpenid(String openid) {
        this.openid = openid;
    }


    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public String getTransType() {
        return transType;
    }

    public void setTransType(String transType) {
        this.transType = transType;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getAddTime() {
        return addTime;
    }

    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getPayFinishTime() {
        return payFinishTime;
    }

    public void setPayFinishTime(String payFinishTime) {
        this.payFinishTime = payFinishTime;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public PaOrderitemReq getItemlist() {
        return itemlist;
    }

    public void setItemlist(PaOrderitemReq itemlist) {
        this.itemlist = itemlist;
    }


}
